<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .editor-box {
      width: 500px;
      height: 500px;
      background-color: red;
    }
  </style>
</head>

<body>
  <div class="editor-box" id="editor-box" contenteditable="true" >
    可以直接粘贴图片到这里直接上传
</div>
  <button type="button" id="btn-submit">上 传</button>
<script src="./js/paste_cursor.js">
</script>
</body>

</html>